package com.info.zhiduoduo.core.formbean;

import com.info.zhiduoduo.common.validator.IntIn;
import com.info.zhiduoduo.common.validator.Phone;

import java.math.BigDecimal;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.PositiveOrZero;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)  //setter return this;
@ToString
public class CheckLongTermSubProjectFormBean {

	@ApiModelProperty("长期项目的子项目id")
	private int projectid;
	@PositiveOrZero
	@ApiModelProperty("验收金额, 单位元, 2位小数")
	private BigDecimal dealamount;
	@ApiModelProperty("拒绝验收原因")
	private String rejectReason;
	@IntIn(value = {13,14}, message = "状态值错误")
	@ApiModelProperty("13:验收通过 14:验收拒绝")
	private int state;
	private String payPassword;
	@NotEmpty(message = "验证码不能为空")
	private String verifyCode;
	@Phone
	private String phone;
}
